
var buttonBorders = {
  'hovered' : { 'opacity': '1', 'borderTopColor': '#ddd', 'borderLeftColor': '#ddd', 'borderRightColor': '#999', 'borderBottomColor': '#777' },
  'pressed' : { 'opacity': '0.6', 'borderTopColor': '#000', 'borderLeftColor': '#000', 'borderRightColor': '#ccc', 'borderBottomColor': '#ccc' },
  'normal' : { 'opacity': '0.7', 'borderTopColor': '#bbb', 'borderLeftColor': '#bbb', 'borderRightColor': '#bbb', 'borderBottomColor': '#bbb' }
};

$( document ).ready( function()
{
  // Change action buttons styles
  $( 'a.button' ).mousedown( function() { $( this ).css( buttonBorders.pressed ).unbind( 'mouseout' ).unbind( 'mouseover' ); });
  $( 'a.button' ).mouseover( function() { $( this ).css( buttonBorders.hovered ); });
  $( 'a.button' ).mouseout(  function() { $( this ).css( buttonBorders.normal  ); });
});